#pragma once
#include "ydbcmd.h"
class YStorage;

class YStorageCmd : public YDbCmd
{
public:
	YStorageCmd(void);
	~YStorageCmd(void);

	BOOL Add(YStorage* pYStorage);
	BOOL DelByID(int nID);
	BOOL EditByID(YStorage* pYStorage);
	void GetByID(YStorage* pYStorage);
	void Get(CTypedPtrList<CPtrList, YStorage *>*pRecList);
	int SameNameRecordCount(TCHAR* pName,int nID);
	int SameNameRecordCount(TCHAR* pName);
};
